
#ifndef __SOCKFD_H__
#define __SOCKFD_H__

#define LISTEN_MAX 128

int create_listen(char *addr, short port);
int accept_connect(int sockfd);
int create_connect(char *addr, short port);
int set_noblock(int fd);
int set_socket_buf(int fd, int rbuf_num, int sbuf_num);

#endif // __SOCKFD_H__
